package csu.ssd.student;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class SignOn extends Application {

    public static void main(String[] args) {
        launch();
    }
Stage stage =new Stage();
    @Override
    public void start(Stage primaryStage) {
        FXMLLoader fxmlLoader = new FXMLLoader(SignOn.class.getResource("denglu.fxml"));
        Scene scene = null;
        try {
            scene = new Scene(fxmlLoader.load(), 600.0, 400.0);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        primaryStage.setTitle("登录");
       primaryStage.setScene(scene);
       primaryStage.setMaxHeight(400.0);
       primaryStage.setMaxWidth(600.0);
       primaryStage.show();

    }
    public void showWindow() throws Exception{
        start(stage);
    }
}
